home *** CD-ROM | disk | FTP | other *** search
- Path: news.flashnet.it!usenet
- From: Alessandro_Consoli@amp.flashnet.it
- Newsgroups: comp.sys.amiga.programmer
- Subject: Gadgets problem...
- Date: Sun, 21 Jan 96 03:39:15 CET
- Organization: AMP-BBS
- Message-ID: <19960121.751B970.365A@amp.flashnet.it>
- NNTP-Posting-Host: amp.flashnet.it
-
-
- Hi All,
-
- Try look in this code...there is a bug in code or in intuition???
- The problem is: intuition or gadtools seems to be deadlock
-
- 8<-8<-8<-8<-8<-8<-8<-8<-8<- cut cut cut 8<-8<-8<-8<-8<-8<-8<-8<-
-
- glist_PTR
- dc.l
- 0
- Gad1_1
-
- dc.l
- 0
- Gad1_2
-
- dc.l
- 0
- Gad1_3
-
- dc.l
- 0
-
-
- lea
- glist_PTR,a0
-
- CALL
- CreateContext,GadT_Base
-
- tst.l
- d0
-
- beq
- Free_VInfo
-
-
- move.l d0,Gad1_1
-
-
- moveq
- #BUTTON_KIND,d0
-
- move.l
- Gad1_1,a0
-
- lea
- Gadget_1,a1
-
- move.l
- VInfo,Gad1_VInfo
-
- suba.l
- a2,a2
-
- CALL
- CreateGadgetA,GadT_Base
-
- tst.l
- d0
-
- beq
- Free_VInfo
-
- move.l d0,Gad1_2
-
-
- ; Nuovo e..precedente
-
-
- move.l
- Win1_PTR,a0
-
- move.l
- Gad1_2,a1
-
- move.w
- #-1,d0
-
-
-
- ; Aggiungi in coda!
-
- CALL
- AddGadget,Int_Base
-
-
- move.l
- Gad1_1,a0
-
- move.l
- Win1_PTR,a1
-
- suba.l
- a2,a2
-
- move.w
- #-1,d0
-
- CALL
- RefreshGList,Int_Base
-
-
- move.l
- Win1_PTR,a0
-
- suba.l
- a1,a1
-
- CALL
- GT_RefreshWindow,GadT_Base
-
-
- ;-
-
- moveq
- #BUTTON_KIND,d0
-
- move.l
- Gad1_2,a0
-
- lea
- Gadget_2,a1
-
- move.l
- VInfo,Gad2_VInfo
-
- suba.l
- a2,a2
-
- CALL
- CreateGadgetA,GadT_Base
-
- tst.l
- d0
-
- beq
- Free_VInfo
-
- move.l d0,Gad1_3
-
-
- ; Nuovo e..precedente
-
-
- move.l
- Win1_PTR,a0
-
- move.l
- Gad1_3,a1
-
- move.w
- #-1,d0
-
-
-
- ; Aggiungi in coda!
-
- CALL
- AddGadget,Int_Base
-
-
- move.l
- Gad1_1,a0
-
- move.l
- Win1_PTR,a1
-
- suba.l
- a2,a2
-
- move.w
- #-1,d0
-
- CALL
- RefreshGList,Int_Base
-
-
- move.l
- Win1_PTR,a0
-
- suba.l
- a1,a1
-
- CALL
- GT_RefreshWindow,GadT_Base
-
-
- 8<-8<-8<-8<-8<-8<-8<-8<-8<- cut cut cut 8<-8<-8<-8<-8<-8<-8<-8<-
-
- Thanks in advance.
-
-
-